package com.hksj.cm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @ClassName DeviceLevelSetting
 * @Description TODO
 * @Author @陈章
 * @Date 2024/7/22 11:40
 * @Version 1.0
 */
@ApiModel(value = "设备评级设置", description = "设备评级设置")
@Data
@TableName(value = "hk_device_level_setting")
public class DeviceLevelSetting {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "建造标准id(字典表id。100级、1000级)")
    @TableField(value = "construction_standards_value")
    private String constructionStandardsValue;

    @ApiModelProperty(value = "设备id")
    @TableField(value = "device_id")
    private Long deviceId;

    @ApiModelProperty(value = "是否选中(0=未选中、1=选中)")
    @TableField(value = "choose")
    private Integer choose;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 创建者id
     */
    @ApiModelProperty(value = "创建者id")
    @TableField(value = "creator")
    private Long creator;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 更新者id
     */
    @ApiModelProperty(value = "更新者id")
    @TableField(value = "updater")
    private Long updater;

}
